/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package oids.frontEnd.components;

import java.awt.Graphics;

/**
 *
 * @author CJ
 */
public abstract class Component {

    protected int x;
    protected int y;
    protected int size;

    public Component(int x, int y, int size){
        this.x = x;
        this.y = y;
        this.size = size;
    }

    public int getX(){
        return this.x;
    }

    public int getY(){
        return this.y;
    }

    public int getSize(){
        return this.size;
    }

    public void setSize(int size){
        this.size = size;
    }

    public void setX(int x){
        this.x = x;
    }

    public void setY(int y){
        this.y = y;
    }

    public abstract void draw(Graphics g);
    public abstract void step();

}
